<?php
session_start();
function menu()
{
?>	
	<li><a href='#'>Home</a></li>
	<li><a href='#'>login</a></li>
<?php	
}
include_once('header.php');
include_once('includes/db.php');
$id=$_GET['id'];
$str="SELECT * FROM `article` WHERE `id`=$id";
$result=mysql_query($str);
$row=mysql_fetch_array($result);


?>
<form action='edit_process.php' method='post'>
<input type='hidden' name='id' value='<?php echo $id;?>'/>	
<h2>Enter article</h2>
<table>
	<tr>
		<td>Title:</td><td><input type='text' name='title' value='<?php echo $row['title'];?>'></td>
	</tr>
	<tr>	
		<td>Aricle:</td><td><textarea name='article' style='width:500px;height:300px'><?php echo $row['article']; ?></textarea></td>
	</tr>
	<tr>	
		<td colspan="2"><center><input type='submit' value='enter'/></center></td>
	</tr>
	
</table>
</form>


<?php
include_once('footer.php');
?>
